package com.audaque.encoding.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author mayong
 * @since 2024/4/29
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_handle_callback")
@Schema(name = "HandleCallbackDO", description = "文件赋码后的回调处理表")
public class HandleCallbackDO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "通知id")
    @TableField("notify_id")
    private String notifyId;

    @Schema(description = "原始请求id")
    @TableField("request_id")
    private String requestId;

    @Schema(description = "文件路径")
    @TableField("filepath")
    private String filepath;

    @Schema(description = "结果表名")
    @TableField("request_table_name")
    private String resultTableName;

    @Schema(description = "落库数据")
    @TableField("record")
    private Integer record;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "异常消息")
    @TableField("message")
    private String message;
}
